package extends_abstract.abstracthome;

public class child extends user{
    public child(String name,double num)
    {
        super(name,num);
    }
    public void receive(double money)
    {
        setNum(getNum()+money);
    }
    public void balance()
    {
        System.out.println(getName()+"余额有"+getNum());
    }
}
